<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<!-- Head -->
<head>
    <meta charset="utf-8"/>
    <title>${session.SOFT_NAME }_智能办公系统</title>
    <meta name="description" content="Dashboard"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <%include("/app/resapi/style.html"){}%>
    <link rel="stylesheet" href="/module/zTree_v3/css/bootstrapStyle/bootstrapStyle.css" type="text/css">
    <link href="/module/bootstrap-table/bootstrap-table.css" rel="stylesheet"/>
    <link rel="stylesheet" type="text/css" href="/module/jeDate/jedate.css"/>
    <style type="text/css">
        .table > tbody > tr > td {
            vertical-align: middle;
        }
    </style>
</head>
<body style="overflow-y: auto;">
<div class="page-body" style="padding: 0px">
    <div class="main-container container-fluid">
        <div class="page-container">
            <div class="col-md-12 col-sm-12 col-xs-12" style="padding: 0px">
                <div class="col-md-12 col-sm-12 col-xs-12" style="padding:0px">
                    <div class="col-md-2 col-sm-2 col-xs-12" style="padding: 0px;">
                        <div class="widget flat radius-bordered">
                            <div class="widget-header bg-lightred">
                                <span class="widget-caption">项目列表</span>
                            </div>
                            <div class="widget-body">
                                <ul id="tree" class="ztree"></ul>
                            </div>
                        </div>
                    </div>
                    <div class="col-md-10 col-sm-10 col-xs-12" style="padding:0px">
                        <div class="col-md-12 col-sm-12 col-xs-12" style="padding: 0px;">
                            <div class="widget-body">
                                <div class="btn-group" id="toobar">
                                    <a href="javascript:void(0);" class="btn btn-magenta js-create-file">创建预算</a>
                                </div>
                                <table id="myTable"></table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="modal fade bs-example-modal-lg" id="fundsModel" tabindex="-1" role="dialog"
         aria-labelledby="myLargeModalLabel" aria-hidden="true" style="display: none;overflow-y: auto;">
        <div class="modal-dialog modal-lg">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                    <h4 class="modal-title">项目预算</h4>
                </div>
                <div class="modal-body">
                    <form class="form-horizontal form-bordered" role="form" id="form1">
                        <table class="table table-hover table-striped table-bordered">
                            <tr>
                                <td width="20%">${i18n('system.sortNo')}：</td>
                                <td width="30"><input type="text" class="form-control" name="sortNo" id="sortNo" placeholder="${i18n('system.sortNo')}"></td>
                                <td width="20%">费用类型：</td>
                                <td width="30"><select class="form-control" name="costId" id="costId"></select></td>
                            </tr>
                            <tr>
                                <td width="20%">预算标题：</td>
                                <td width="30" colspan="3"><input type="text" class="form-control" name="title" id="title" placeholder="预算标题"></td>
                            </tr>
                            <tr>
                                <td width="20%">预算金额：</td>
                                <td width="30" colspan="3"><input type="text" class="form-control" name="funds" id="funds" placeholder="预算金额"></td>
                            </tr>
                            <tr>
                                <td width="20%">预算说明：</td>
                                <td width="30" colspan="3"><input type="text" class="form-control" name="remark" id="remark" placeholder="预算说明" maxlength="350"></td>
                            </tr>
                            <tr>
                                <td width="20%">文档附件：</td>
                                <td width="30" colspan="3">
                                    <div id="show_attach"></div>
                                    <a class="addfile" href="javascript:void(0)">${i18n('fileupload')}
                                        <input data_value="" type="file" onchange="fileUpLoad('project','attach');" hidefocus="true"
                                               maxlength="1" id="attach" name="attach" class="addfile" multiple="multiple"></a>
                                </td>
                            </tr>
                        </table>
                    </form>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-warning" data-dismiss="modal">${i18n('cancel')}</button>
                    <button type="button" class="btn btn-primary js-funds">${i18n('ok')}</button>
                </div>
            </div>
        </div>
    </div>
</div>
<div id="orgselectdiv"></div>
<div id="attachselect"></div>
</body>
<%include("/app/resapi/sysjs.html"){}%>
<script type="text/javascript" src="/module/zTree_v3/js/jquery.ztree.core.js"></script>
<script type="text/javascript" src="/module/zTree_v3/js/jquery.ztree.excheck.js"></script>
<script type="text/javascript" src="/module/zTree_v3/js/jquery.ztree.exedit.js"></script>
<script type="text/javascript" src="/module/bootstrap-table/bootstrap-table.js"></script>
<script type="text/javascript" src="/module/bootstrap-table/bootstrap-table-${localeLangCountry()}.js"></script>
<script type="text/javascript" src="/module/fileupload/ajaxfileupload.js"></script>
<script type="text/javascript" src="/module/fileupload/fileupload.js"></script>
<script type="text/javascript" src="/module/fileupload/attachselect.js"></script>
<script type="text/javascript" src="/gobal/js/page/project/funds/index.js"></script>
</body>
</html>
